import { Routes, RouterModule } from '@angular/router';
import { CmpAComponent } from '../textComponent/cmpa.component';
import { CmpBComponent } from '../textComponent/cmpb.component';

const routes:Routes = [
  { path: 'a', component: CmpAComponent},
  { path: 'b', component: CmpBComponent}
]

export default RouterModule.forRoot(routes)
